from django.contrib import admin

# Register your models here.
from django.contrib import admin
from import_export.admin import ImportExportModelAdmin

from lab.device.models import Appointment, AppointmentMaterial, DeviceParams, Lab, Device, File, Material


@admin.register(Lab)
class LabAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in Lab._meta.fields]


@admin.register(File)
class FileAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in File._meta.fields]


@admin.register(Device)
class DeviceAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in Device._meta.fields]


@admin.register(Material)
class MaterialAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in Material._meta.fields]

@admin.register(Appointment)
class AppointmentAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in Appointment._meta.fields]

@admin.register(DeviceParams)
class DeviceParamsAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in DeviceParams._meta.fields]

@admin.register(AppointmentMaterial)
class AppointmentMaterialAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in AppointmentMaterial._meta.fields]